package cn.ilovese.collect.po.report;

import cn.ilovese.collect.vo.report.ReportFormVO;
import cn.ilovese.collect.vo.report.ReportVO;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.util.Date;
@Data
@NoArgsConstructor
public class Report {
    private Integer id;

    private Integer taskId;

    private Integer userId;

    private String description;

    private String steps;

    private String deviceInfo;

    private Date submitTime;

    private Double textSimilarity;

    private Double picSimilarity;

    private Boolean pass;

    public Report(@NonNull ReportFormVO report){
        taskId=report.getTaskid();
        userId=report.getWorkerid();
        description=report.getDescription();
        steps=report.getSteps();
        deviceInfo=report.getEnvironment();
    }
}